package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 用户当前选择教材项信息表单对象
 *
 * @author youlaitech
 * @since 2025-06-22 07:38
 */
@Getter
@Setter
@Schema(description = "用户当前选择教材项信息表单对象")
public class UserCurrentProgramForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户匹配教材项的ID")
    private Long id;

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "用户名")
//    @NotBlank(message = "用户名不能为空")
    @Size(max=64, message="用户名长度不能超过64个字符")
    private String username;

    @Schema(description = "当前系列ID")
//    @NotNull(message = "当前系列ID不能为空")
    private Long seriesId;

    @Schema(description = "当前教材ID")
    @NotNull(message = "当前教材ID不能为空")
    private Long programId;


}
